import request from '@/utils/request'

// 关注
export function follow(authorId) {
	return request({
		url: `/api/relationship/subscribe/${authorId}`,
		method: 'get'
	})
}

// 取消关注
export function unFollow(authorId) {
	return request({
		url: `/api/relationship/unsubscribe/${authorId}`,
		method: 'get'
	})
}

// 验证是否关注
export function fetchHasFollowed(authorId) {
	return request({
		url: `/api/relationship/validate/${authorId}`,
		method: 'get'
	})
}
